package com.atguigu.utils;

import java.util.ArrayList;
import java.util.List;

public class ITtoListUtil {
    public static <T> List<T> toList(Iterable<T> it){
        //将itable转为list集合
        List<T> list = new ArrayList<>();
        for (T t : it) {
            list.add(t);
        }
        return list;
    }
}
